/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Temporal Operator</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.AdaptedauiPackage#getTemporalOperator()
 * @model
 * @generated
 */
public enum TemporalOperator implements Enumerator {
	/**
	 * The '<em><b>Choice</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CHOICE_VALUE
	 * @generated
	 * @ordered
	 */
	CHOICE(0, "Choice", "Choice"),

	/**
	 * The '<em><b>Order Independency</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ORDER_INDEPENDENCY_VALUE
	 * @generated
	 * @ordered
	 */
	ORDER_INDEPENDENCY(1, "OrderIndependency", "OrderIndependency"),

	/**
	 * The '<em><b>Concurrent</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CONCURRENT_VALUE
	 * @generated
	 * @ordered
	 */
	CONCURRENT(2, "Concurrent", "Concurrent"),

	/**
	 * The '<em><b>Concurrent With Info Exchange</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CONCURRENT_WITH_INFO_EXCHANGE_VALUE
	 * @generated
	 * @ordered
	 */
	CONCURRENT_WITH_INFO_EXCHANGE(3, "ConcurrentWithInfoExchange", "ConcurrentWithInfoExchange"),

	/**
	 * The '<em><b>Disabling</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DISABLING_VALUE
	 * @generated
	 * @ordered
	 */
	DISABLING(4, "Disabling", "Disabling"),

	/**
	 * The '<em><b>Suspend Resume</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SUSPEND_RESUME_VALUE
	 * @generated
	 * @ordered
	 */
	SUSPEND_RESUME(5, "SuspendResume", "SuspendResume"),

	/**
	 * The '<em><b>Enabling</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ENABLING_VALUE
	 * @generated
	 * @ordered
	 */
	ENABLING(6, "Enabling", "Enabling"),

	/**
	 * The '<em><b>Enabling With Info Exchange</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ENABLING_WITH_INFO_EXCHANGE_VALUE
	 * @generated
	 * @ordered
	 */
	ENABLING_WITH_INFO_EXCHANGE(7, "EnablingWithInfoExchange", "EnablingWithInfoExchange"),

	/**
	 * The '<em><b>Iteration</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ITERATION_VALUE
	 * @generated
	 * @ordered
	 */
	ITERATION(8, "Iteration", "Iteration"),

	/**
	 * The '<em><b>Option</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OPTION_VALUE
	 * @generated
	 * @ordered
	 */
	OPTION(9, "Option", "Option"),

	/**
	 * The '<em><b>Undefined</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #UNDEFINED_VALUE
	 * @generated
	 * @ordered
	 */
	UNDEFINED(10, "Undefined", "Undefined");

	/**
	 * The '<em><b>Choice</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Choice</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CHOICE
	 * @model name="Choice"
	 * @generated
	 * @ordered
	 */
	public static final int CHOICE_VALUE = 0;

	/**
	 * The '<em><b>Order Independency</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Order Independency</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ORDER_INDEPENDENCY
	 * @model name="OrderIndependency"
	 * @generated
	 * @ordered
	 */
	public static final int ORDER_INDEPENDENCY_VALUE = 1;

	/**
	 * The '<em><b>Concurrent</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Concurrent</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CONCURRENT
	 * @model name="Concurrent"
	 * @generated
	 * @ordered
	 */
	public static final int CONCURRENT_VALUE = 2;

	/**
	 * The '<em><b>Concurrent With Info Exchange</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Concurrent With Info Exchange</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CONCURRENT_WITH_INFO_EXCHANGE
	 * @model name="ConcurrentWithInfoExchange"
	 * @generated
	 * @ordered
	 */
	public static final int CONCURRENT_WITH_INFO_EXCHANGE_VALUE = 3;

	/**
	 * The '<em><b>Disabling</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Disabling</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DISABLING
	 * @model name="Disabling"
	 * @generated
	 * @ordered
	 */
	public static final int DISABLING_VALUE = 4;

	/**
	 * The '<em><b>Suspend Resume</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Suspend Resume</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SUSPEND_RESUME
	 * @model name="SuspendResume"
	 * @generated
	 * @ordered
	 */
	public static final int SUSPEND_RESUME_VALUE = 5;

	/**
	 * The '<em><b>Enabling</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Enabling</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ENABLING
	 * @model name="Enabling"
	 * @generated
	 * @ordered
	 */
	public static final int ENABLING_VALUE = 6;

	/**
	 * The '<em><b>Enabling With Info Exchange</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Enabling With Info Exchange</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ENABLING_WITH_INFO_EXCHANGE
	 * @model name="EnablingWithInfoExchange"
	 * @generated
	 * @ordered
	 */
	public static final int ENABLING_WITH_INFO_EXCHANGE_VALUE = 7;

	/**
	 * The '<em><b>Iteration</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Iteration</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ITERATION
	 * @model name="Iteration"
	 * @generated
	 * @ordered
	 */
	public static final int ITERATION_VALUE = 8;

	/**
	 * The '<em><b>Option</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Option</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OPTION
	 * @model name="Option"
	 * @generated
	 * @ordered
	 */
	public static final int OPTION_VALUE = 9;

	/**
	 * The '<em><b>Undefined</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Undefined</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #UNDEFINED
	 * @model name="Undefined"
	 * @generated
	 * @ordered
	 */
	public static final int UNDEFINED_VALUE = 10;

	/**
	 * An array of all the '<em><b>Temporal Operator</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final TemporalOperator[] VALUES_ARRAY =
		new TemporalOperator[] {
			CHOICE,
			ORDER_INDEPENDENCY,
			CONCURRENT,
			CONCURRENT_WITH_INFO_EXCHANGE,
			DISABLING,
			SUSPEND_RESUME,
			ENABLING,
			ENABLING_WITH_INFO_EXCHANGE,
			ITERATION,
			OPTION,
			UNDEFINED,
		};

	/**
	 * A public read-only list of all the '<em><b>Temporal Operator</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<TemporalOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Temporal Operator</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TemporalOperator get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TemporalOperator result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Temporal Operator</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TemporalOperator getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TemporalOperator result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Temporal Operator</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TemporalOperator get(int value) {
		switch (value) {
			case CHOICE_VALUE: return CHOICE;
			case ORDER_INDEPENDENCY_VALUE: return ORDER_INDEPENDENCY;
			case CONCURRENT_VALUE: return CONCURRENT;
			case CONCURRENT_WITH_INFO_EXCHANGE_VALUE: return CONCURRENT_WITH_INFO_EXCHANGE;
			case DISABLING_VALUE: return DISABLING;
			case SUSPEND_RESUME_VALUE: return SUSPEND_RESUME;
			case ENABLING_VALUE: return ENABLING;
			case ENABLING_WITH_INFO_EXCHANGE_VALUE: return ENABLING_WITH_INFO_EXCHANGE;
			case ITERATION_VALUE: return ITERATION;
			case OPTION_VALUE: return OPTION;
			case UNDEFINED_VALUE: return UNDEFINED;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private TemporalOperator(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //TemporalOperator
